projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
def85c1
)
Fix hardcoded GPS time->UTC offset in Skytraq.
author
robertlipe
<robertlipe@gmail.com>
Wed, 27 Jun 2012 14:14:40 +0000
(14:14 +0000)
committer
robertlipe
<robertlipe@gmail.com>
Wed, 27 Jun 2012 14:14:40 +0000
(14:14 +0000)
gpsbabel/skytraq.c
patch
|
blob
|
history
diff --git
a/gpsbabel/skytraq.c
b/gpsbabel/skytraq.c
index 6edeb1469e31e097578930a147550493cbc29a76..1f9e30a80f80b54240ccfb4e1d5b1c52ef487990 100644
(file)
--- a/
gpsbabel/skytraq.c
+++ b/
gpsbabel/skytraq.c
@@
-553,9
+553,9
@@
static time_t
gpstime_to_timet(int week, int sec)
{
/* TODO: make leap second compensation more general
- * (the windows software seems to correct by
13
).
+ * (the windows software seems to correct by
a magic amount
).
*/
- return (315964800 + (week+1024)*7*SECONDS_PER_DAY + sec - 1
3
);
+ return (315964800 + (week+1024)*7*SECONDS_PER_DAY + sec - 1
6
);
}
static void